package com.xmb.wcapi.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmb.wcapi.entity.SysRolePermission;
import com.xmb.wcapi.mapper.SysRolePermissionMapper;
import com.xmb.wcapi.service.ISysRolePermissionService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangping
 * @since 2020-03-07
 */
@Service
public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission> implements ISysRolePermissionService {

	@Override
	public List<SysRolePermission> selectInfoList(Wrapper<SysRolePermission> where) {
		return list(where);
	}

	@Override
	public void delete(Wrapper<SysRolePermission> ew) throws Exception {
		remove(ew);
	}

	@Override
	public void add(List<SysRolePermission> list) {
		saveBatch(list);
	}

}
